package cn.chaohi.domain.config;

import java.io.Serializable;
import java.util.Date;

/**
 * @author James-Yin
 * @date 2018-08-04
 */
public class PartUpgradeConfig implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id;
	//超市ID
	private Integer marketId;
	//超市ID
	private Integer marketName;
	//超市门店ID
	private String marketStoreId;
	//超市门店名
	private String marketStoreName;
	//版本号
	private String version;
	//车辆mac地址
	private String wifiMac;
	//是否全量升级（1全量 -1增量 ）
	private String plusUpgrade;
	//是否后台下载（1后台 -1前台 ）
	private String backDownload;
	//1：关闭  2:升级  3：降级
	private String upgradeDegrade;
	//是否可取消升级（1可取消 -1不可取消）
	private String cancelUpgrade;
	//1：购物车 2：防损Pad  3：防损大屏 (要升级对象)
	private String updateObject;
	//0：使用全局配置 1：暂不升级  2：无用户使用时升级  3：立刻升级  4：取消下载
	private String upgradeStrategy;
	//0：使用全局配置 1:无用户使用时自动下载 2:立即下载
	private String downloadStrategy;
	//更新时间
	private Date updateTime;
	//创建时间
	private Date createTime;
	
	public PartUpgradeConfig() {
		super();
	}
	
	public PartUpgradeConfig(String id, Integer marketId, Integer marketName, String marketStoreId,
			String marketStoreName, String version, String wifiMac, String plusUpgrade, String backDownload,
			String upgradeDegrade, String cancelUpgrade, String updateObject, String upgradeStrategy,
			String downloadStrategy, Date updateTime, Date createTime) {
		super();
		this.id = id;
		this.marketId = marketId;
		this.marketName = marketName;
		this.marketStoreId = marketStoreId;
		this.marketStoreName = marketStoreName;
		this.version = version;
		this.wifiMac = wifiMac;
		this.plusUpgrade = plusUpgrade;
		this.backDownload = backDownload;
		this.upgradeDegrade = upgradeDegrade;
		this.cancelUpgrade = cancelUpgrade;
		this.updateObject = updateObject;
		this.upgradeStrategy = upgradeStrategy;
		this.downloadStrategy = downloadStrategy;
		this.updateTime = updateTime;
		this.createTime = createTime;
	}

	public Integer getMarketName() {
		return marketName;
	}

	public void setMarketName(Integer marketName) {
		this.marketName = marketName;
	}

	public String getMarketStoreName() {
		return marketStoreName;
	}

	public void setMarketStoreName(String marketStoreName) {
		this.marketStoreName = marketStoreName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getMarketId() {
		return marketId;
	}

	public void setMarketId(Integer marketId) {
		this.marketId = marketId;
	}

	public String getMarketStoreId() {
		return marketStoreId;
	}

	public void setMarketStoreId(String marketStoreId) {
		this.marketStoreId = marketStoreId;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getWifiMac() {
		return wifiMac;
	}

	public void setWifiMac(String wifiMac) {
		this.wifiMac = wifiMac;
	}

	public String getPlusUpgrade() {
		return plusUpgrade;
	}

	public void setPlusUpgrade(String plusUpgrade) {
		this.plusUpgrade = plusUpgrade;
	}

	public String getBackDownload() {
		return backDownload;
	}

	public void setBackDownload(String backDownload) {
		this.backDownload = backDownload;
	}

	public String getUpgradeDegrade() {
		return upgradeDegrade;
	}

	public void setUpgradeDegrade(String upgradeDegrade) {
		this.upgradeDegrade = upgradeDegrade;
	}

	public String getCancelUpgrade() {
		return cancelUpgrade;
	}

	public void setCancelUpgrade(String cancelUpgrade) {
		this.cancelUpgrade = cancelUpgrade;
	}

	public String getUpdateObject() {
		return updateObject;
	}

	public void setUpdateObject(String updateObject) {
		this.updateObject = updateObject;
	}

	public String getUpgradeStrategy() {
		return upgradeStrategy;
	}

	public void setUpgradeStrategy(String upgradeStrategy) {
		this.upgradeStrategy = upgradeStrategy;
	}

	public String getDownloadStrategy() {
		return downloadStrategy;
	}

	public void setDownloadStrategy(String downloadStrategy) {
		this.downloadStrategy = downloadStrategy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
